/**
 * 
 */
package web.common.entity;

import java.util.Date;
import java.util.List;

/**
 * 项目名称：ebs 
 * @ClassName: Designer
 * @author ZK JIA<br>
 * 创建时间： 2013-11-6 下午09:59:20<br>
 * @version 1.1<br>
 * 描述: TODO(设计分析师)<br>
 */

public class Designer extends BaseEntity{
	
	
   /**
	
	* <p>Title: </p>
	
	* <p>Description: </p>
	
	* @param createTime
	* @param updateTime
	* @param createBy
	* @param designerCode
	* @param userCode
	* @param introductionCode
	* @param areaCode
	* @param user
	* @param area
	* @param atticles
	* @param images
	* @param products
	
	*/
	public Designer(Date createTime, Date updateTime, String createBy,
			String designerCode, String userCode, String introductionCode,
			String areaCode, User user, Area area, List<Article> atticles,
			List<Image> images, List<Product> products) {
		super(createTime, updateTime, createBy);
		this.designerCode = designerCode;
		this.userCode = userCode;
		this.introductionCode = introductionCode;
		this.areaCode = areaCode;
		this.user = user;
		this.area = area;
		this.atticles = atticles;
		this.images = images;
		this.products = products;
	}
   private String designerCode;
   private String userCode;
   private String introductionCode;
   private String areaCode;
   
   private User user;
   private Area area;
   private List<Article> atticles;
   private List<Image> images;
   private List<Product> products;
	public String getDesignerCode() {
		return designerCode;
	}
	public void setDesignerCode(String designerCode) {
		this.designerCode = designerCode;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getIntroductionCode() {
		return introductionCode;
	}
	public void setIntroductionCode(String introductionCode) {
		this.introductionCode = introductionCode;
	}
	public String getAreaCode() {
		return areaCode;
	}
	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Area getArea() {
		return area;
	}
	public void setArea(Area area) {
		this.area = area;
	}
	public List<Article> getAtticles() {
		return atticles;
	}
	public void setAtticles(List<Article> atticles) {
		this.atticles = atticles;
	}
	public List<Image> getImages() {
		return images;
	}
	public void setImages(List<Image> images) {
		this.images = images;
	}
	public List<Product> getProducts() {
		return products;
	}
	public void setProducts(List<Product> products) {
		this.products = products;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((designerCode == null) ? 0 : designerCode.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Designer other = (Designer) obj;
		if (designerCode == null) {
			if (other.designerCode != null)
				return false;
		} else if (!designerCode.equals(other.designerCode))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Designer [area=" + area + ", areaCode=" + areaCode
				+ ", atticles=" + atticles + ", designerCode=" + designerCode
				+ ", images=" + images + ", introductionCode="
				+ introductionCode + ", products=" + products + ", user="
				+ user + ", userCode=" + userCode + ", createBy=" + createBy
				+ ", createTime=" + createTime + ", updateTime=" + updateTime
				+ "]";
	}
	   
	   
	   
	
}
